using Gateway.Common.Entity;

namespace Gateway.Domain.Entities;

public class DescribeDomainRecord : EntityBase
{
    public string  DomainId { get; set; }
    public string Status { get; set; }
    public string Type { get; set; }
    public string Remark { get; set; }
    public long TTL { get; set; }
    public string RecordId { get; set; }
    public string RR { get; set; }
    public string DomainName { get; set; }
    public int Weight { get; set; }
    public string Value { get; set; }
    public string Endpoint { get; set; }
    /// <summary>
    /// 聚合根
    /// </summary>
    public DescribeDomain Domain { get; set; }
    public DescribeDomainRecord() { }

    public DescribeDomainRecord(string status, string type, string remark, long tTL, string recordId, string rR, string domainName, int weight, string value, string endpoint)
    {
        Status = status;
        Type = type;
        Remark = remark;
        TTL = tTL;
        RecordId = recordId;
        RR = rR;
        DomainName = domainName;
        Weight = weight;
        Value = value;
        Endpoint = endpoint;
    }
}